import { http } from "@/utils/http";

type Result = {
  success: boolean;
  data: Array<any>;
};

export const getAsyncRoutes = () => {
  return http.request<Result>("get", "/api/Menu/GetManageMenus");
};

export const getStudentModuleInfos = (params?: string) => {
  return http.request<any>("get", "/api/Menu/StudentModuleInfos?" + params);
};

// export const getAsyncRoutes = () => {
//   return http.request<Result>("get", "/getAsyncRoutes");
// };
